package cn.ly.link.data;

import cn.ly.link.Node;

public class LinkStack<E> {
	
	private LinkList linkList;
	public LinkStack(){
		this.linkList = new LinkList();
	}
	
	public void push(E e){
		this.linkList.insertFirst(e);
	}
	
	public E pop(){
		return (E)this.linkList.removeFirst();
	}
	
	public void displayStack(){
		this.linkList.display();
	}

}
